<template>
  <div class="all">
    <div class="images">
      <img :src="images"/>
      <div class="shopNav">
        <p class="describe">{{text}}</p>
        <span class="shop">去抢购</span>
        <div class="clearfix"></div>
      </div>
      <div class="price">
        <span>{{price}}</span>
        <span>{{jiage}}</span>
        <div class="clearfix"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    'text': String,
    'price': String,
    'jiage': String,
    'images': String
  }
}
</script>

<style>
  /*div{*/
    /*border:1px solid red;*/
  /*}*/
.clearfix{
  clear: both;
}
.images{

}
.images > img{
  width: 100%;
}
.all {
  border-width:1px;
  width: 100%;
}
img{
  width: 100%;
  display:block;
  margin:0;
}
.describe{
  line-height: 50px;
  margin-left: 20px;

}
.shopNav{
  clear: both;
  font-size: 18px;
  box-sizing: border-box;
  position:relative;
}
.shop{

  background: #ff5c29;
  border-radius:5px;
  /*border-width:1px;*/
  color: #fff;
  display: block;
  padding: 0px 15px;
  line-height: 32px;
  text-align: center;
  position:absolute;
  top:calc(50% - 16px);
  right: 10px;
}
p{
  float: left;
}
.price{
  color: #fff;
  background: green;
}
  .price span:nth-child(1){
    font-size: 30px;
    display: block;
    float: left;
    margin-left: 10px;
    line-height: 60px;

  }
  .price span:nth-child(2){
    height: 100%;
    margin-left: 5px;
    float: left;
    font-size: 14px;
    margin-top: 25px;
    text-decoration: line-through;
    vertical-align: bottom;
  }
</style>
